#include "vga_text.h"
#include "va_list.h"
#include "stdarg.h"

void kernel_panic(char *fmt,...)
{
	va_list args;

	va_start(args,fmt);
	va_end();

	char *message = "\nWe apologize, an error occur during system running\n";

	//vga_text_mode_set_color(0x13);
	//vga_text_mode_cls();
	//vga_text_mode_goto(0,0);

	vga_text_mode_set_color(0x17);
	vga_text_mode_printk("%s",message);
	vga_text_mode_printk("STOP:%s",fmt);

	for(;;);
}